package com.ikun.admin.modules.noauth.iservice;

import com.ikun.admin.modules.noauth.vo.DictVo;
import com.ikun.admin.modules.noauth.vo.ForgotPasswordVo;
import com.ikun.admin.modules.noauth.vo.LoginByCodeVo;
import com.ikun.admin.modules.noauth.vo.ReFreshVo;
import com.ikun.common.entity.SecurityUserInfo;
import com.ikun.common.result.Result;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

/**
 * @ClassName IConmonController
 * @Description:
 * @CreateDate: 2024/4/19 17:58
 */

public interface ICommonService {


    Result<String> getCode(String username,Integer type);

    Result<String> checkCode(ForgotPasswordVo forgotPasswordVo);

    void getImgCode(HttpServletResponse response, HttpSession session) throws IOException;

    Result<String> checkImgCode(ForgotPasswordVo forgotPasswordVo, HttpSession session);

    Result<String> updatePasswordByCode(ForgotPasswordVo forgotPasswordVo);

    Result<SecurityUserInfo> loginByCode(LoginByCodeVo loginByCodeVo);

    Result<String> commonCheckCode(String codeNumber, Integer codeType,String code);

    Result<String> refreshToken(ReFreshVo reFreshVo);

    Result<List<DictVo>> selectDict(String group);
}
